package com.asia5b.a5mall.middleware.model.cart

import com.asia5b.a5mall.middleware.model.base.BaseModel
import com.asia5b.a5mall.middleware.model.shop.AbsShopModel

/**
 * Created by zhangyuncai on 2020/1/4.
 */
class CartAllModel : BaseModel() {
    val total_price: CartPriceModel? = null
    //cart_list的数据只有1个
    val cart_list:ArrayList<AbsShopModel>?=null
    val transportations:ArrayList<TransModel>?=null
}
class CartPriceModel : BaseModel() {
    val total_price: Double = 0.0//付款总价
    val total_price_list: HashMap<String, Double>? = null//付款总价
    val cash_back: Double = 0.0//返现
    val cash_back_list: HashMap<String, Double>? = null
    val original_price: Double = 0.0//商品总金额
    val original_price_list: HashMap<String, Double>? = null
    var coupon_price = 0.0//优惠券抵用
    val coupon_price_list: HashMap<String, Double>? = null
    var freight_price = 0.0//运费(国内)
    val freight_price_list: HashMap<String, Double>? = null
    var exchange_point = 0//积分
    var international_price = 0.0//国际运费
    val international_price_list: HashMap<String, Double>? = null
}
/*
{
    "cart_list": [],
    "total_price": {
        "total_price": 0,
        "total_price_list": {
            "price_rmb": 0,
            "price_myr": 0,
            "price_thb": 0,
            "price_idr": 0,
            "price_vnd": 0,
            "price_php": 0
        },
        "original_price": 0,
        "original_price_list": {
            "price_rmb": 0,
            "price_myr": 0,
            "price_thb": 0,
            "price_idr": 0,
            "price_vnd": 0,
            "price_php": 0
        },
        "goods_price": 0,
        "goods_price_list": {
            "price_rmb": 0,
            "price_myr": 0,
            "price_thb": 0,
            "price_idr": 0,
            "price_vnd": 0,
            "price_php": 0
        },
        "freight_price": 0,
        "freight_price_list": {
            "price_rmb": 0,
            "price_myr": 0,
            "price_thb": 0,
            "price_idr": 0,
            "price_vnd": 0,
            "price_php": 0
        },
        "discount_price": 0,
        "discount_price_list": {
            "price_rmb": 0,
            "price_myr": 0,
            "price_thb": 0,
            "price_idr": 0,
            "price_vnd": 0,
            "price_php": 0
        },
        "cash_back": 0,
        "cash_back_list": {
            "price_rmb": 0,
            "price_myr": 0,
            "price_thb": 0,
            "price_idr": 0,
            "price_vnd": 0,
            "price_php": 0
        },
        "coupon_price": 0,
        "coupon_price_list": {
            "price_rmb": 0,
            "price_myr": 0,
            "price_thb": 0,
            "price_idr": 0,
            "price_vnd": 0,
            "price_php": 0
        },
        "full_minus": 0,
        "full_minus_list": {
            "price_rmb": 0,
            "price_myr": 0,
            "price_thb": 0,
            "price_idr": 0,
            "price_vnd": 0,
            "price_php": 0
        },
        "international_price": 0,
        "international_price_list": {
            "price_rmb": 0,
            "price_myr": 0,
            "price_thb": 0,
            "price_idr": 0,
            "price_vnd": 0,
            "price_php": 0
        },
        "is_free_freight": 0,
        "exchange_point": 0
    },
    "transportations": null
}
 */
